<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Test</title>
</head>
<body>
    <div>
        <ul>
            <li th:text="${#ctx.getVariable('obj')}"></li>
            <li th:text="${#locale.country}"></li>
            <li th:text="${#locale.getCountry()}"></li>
            <li th:text="${#locale.displayLanguage}"></li>
            <li th:text="${#locale.variant}"></li>
            <li th:text="${#locale.getDisplayLanguage()}"></li>
        </ul>
    </div>
    <div>
        <input th:value="${obj.get('name') + ' ' + obj.get('id')}" />
        <ul>
            <li th:text="${#numbers.formatDecimal(obj.get('id'),0,2)}"></li>
            <li th:text="${obj.get('name')}"></li>
            <li th:text="${obj['url']}"></li>
            <li th:text="${#dates.format(obj.get('createTime'),'yyyy-MM-dd HH:mm:ss')}"></li>
            <li th:if="not ${#arrays.isEmpty(obj.hobbies)}">
                <ul>
                    <li th:each="h : ${obj.hobbies}" th:class="'lvl'+${hStat.index+1}" th:text="${h}"></li>
                </ul>
            </li>
        </ul>
    </div>
</body>
</html>